package com.ydl.zhwc.mvpandrxjava.sample;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.ydl.zhwc.mvpandrxjava.R;
import com.ydl.zhwc.mvpandrxjava.sample.error.ErrorActivity;
import com.ydl.zhwc.mvpandrxjava.sample.mvp.MVPActivity;
import com.ydl.zhwc.mvpandrxjava.sample.token.TokenActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onMVPClick(View view) {
        startActivity(new Intent(this, MVPActivity.class));
    }

    public void onErrorClick(View view) {
        startActivity(new Intent(this, ErrorActivity.class));
    }

    public void onTokenClick(View view) {
        startActivity(new Intent(this, TokenActivity.class));
    }
}
